number = int(input('请输入一个正整数：'))
a, b = 1, 1
while a < number:
    print(a, end = ' ')
    a, b = b, a + b